<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${basePath}">
<jsp:include page="../header.jsp">
	<jsp:param value="收款记录" name="title"/>
</jsp:include>
<link href="static/css/teacher.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class = "gps">
		<a class = "home" href="staff?method=forward">首页</a>
		<sapn>></sapn>	
		<a href="total">收款管理</a>
		<sapn>></sapn>	
		<a>收款记录</a>
	</div>
	<div style="padding-bottom: 25px;padding-left: 25px;padding-right: 25px;padding-top: 15px;">
		<table class="ui padded table" >
			<thead>
				<tr>
					<th colspan="7">收款记录表</th>
				</tr>
			</thead>
			<tbody align="center">
				<tr>
					<td colspan="7">
						<div class="searcherstudent">
						<div class="ui form">
								<div class="fields">
									<div class="field">
										<a class="mini ui green label" href="total">未交完</a>
									</div>
									<div class="field">
										<a class="mini ui green label" href="allpayed?allpayed=getallpayed">已交完</a>
									</div>
									<form action="addpaymenter">
										<div class="fields" style="margin-left: 710px">
											<div class="ui disabled icon input" style="height:28px;width:160px;">
												<i class="search icon"></i>
												<input type="text" name="studentName"  placeholder="检索学员">
											</div>
											<div class="field">
												<!-- <button class="mini ui green label">新增</button> -->
												<button class="mini ui green label"><i class="icon add"></i>新增</button>
											</div>
										</div>
									</form>
									<form>
										<div class="ui form">
											<div class="fields" style="margin-left: 10px">
												<div class="ui disabled icon input" style="height:28px;width:160px;">
													<i class="search icon"></i>
													<input type="text" name="staffName" value="${param.staffName }" placeholder="收款人">
													<input type="hidden" name="stuid" value="${stuId}">
												</div>
												<div class="field">
													<button class="ui green label">检索</button>
												</div>
											</div> 
										</div>
									</form>
								</div>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td >姓名</td>
					<td >缴费金额</td>
					<td >收款人</td>
					<td >缴费日期</td>
				</tr>
				<c:choose>
					<c:when test="${!empty totalList}">
						<c:forEach items="${totalList}" var="totalList">
							<tr>
								<td >${totalList.receiptStuName}</td>
								<td >${totalList.receiptMoney}</td>
								<td >${totalList.receiptStaffName}</td>
								<td >${totalList.receiptDate}</td>
								<%-- <td >
									<c:if test="${listtotal.totalNoMoney > 0}">
									<a class="mini ui orange label" href="payment?stuname=${listtotal.totalStudentName}&stuid=${listtotal.totalStudentId}&stuclass=${listtotal.totalClassName}&totalMoney=${listtotal.totalMoney}&totalNoMoney=${listtotal.totalNoMoney}&totalId=${listtotal.totalId}">缴费</a>
									</c:if>
									<a class="mini ui green label" href="record?stuid=${listtotal.totalStudentId}">记录</a>
								</td> --%>
							</tr>
						</c:forEach>
				</c:when>
					<c:otherwise>
						<tr>
							<td colspan="8">暂无记录</td>
						</tr>
					</c:otherwise>
				</c:choose>
			</tbody>
		<c:if test="${totalPage > 1 }">
			<tfoot>
				<tr>
					<th colspan="4">
						<div class="page">
							<a <c:if test="${page!=1}">href="record?page=1${queryString}"</c:if>
								class="${page == 1?'disable':''}">首页</a> <a
								<c:if test="${page!=1}">href="record?page=${page-1}${queryString}"</c:if>
								class="${page == 1?'disable':''}">上一页</a> <a
								<c:if test="${page!=totalPage}">href="record?page=${page+1 }${queryString}"</c:if>
								class="${page == totalPage?'disable':''}">下一页</a> <a
								<c:if test="${page!=totalPage}">href="record?page=${totalPage }${queryString}"</c:if>
								class="${page == totalPage?'disable':''}">尾页</a> <span>
								${page}/${ totalPage} </span>
						</div>
					</th>
				</tr>
			</tfoot>
		</c:if>
		</table>
	</div>
</body>
</html>